/**
 * @Copyright ®2015 Sinosoft Co. Ltd. All rights reserved.
 * 项目名称 : 网站服务平台
 * 创建日期 : 2016-11-22
 * 修改历史 :
 * 1. [2016-11-22]创建文件 by chenxin
 */
package com.sinosoft.sinopay.paytrade.entry.facade;

import java.util.List;
import java.util.Map;

import com.sinosoft.sinopay.paytrade.dto.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sinosoft.sinocloud.platform.base.SinoBaseService;
import com.sinosoft.sinocloud.platform.common.web.pagequery.PageGrid;
import com.sinosoft.sinocloud.platform.common.web.pagequery.PageQueryModel;
import com.sinosoft.sinopay.api.common.dto.pay.PaymentInfoDetailDTO;
import com.sinosoft.sinopay.api.common.dto.query.PayInfoQryParam;
import com.sinosoft.sinopay.paytrade.biz.service.PaymentTradeQryCoreService;
import com.sinosoft.sinopay.paytrade.facade.PaymentTradeQueryFacadeService;

/**
 * 【支付交易查询微服务接口实现类】
 * @author chenxin
 * @date 2016-11-22 下午1:38 
 * @version V1.0
 */
@Service
public class PaymentTradeQueryFacadeServiceImpl extends SinoBaseService implements PaymentTradeQueryFacadeService {
    @Autowired
    private PaymentTradeQryCoreService paymentTradeQryCoreService;
    @Override
    public List<PaymentInfoDetailDTO> queryPaymentDetailsByParam(PayInfoQryParam queryParam) {
        return paymentTradeQryCoreService.queryPaymentDetailListByParam(queryParam);
    }

    @Override
    public PaymentInfoDetailDTO queryPaymentOrderByPayNo(String payNo){
    	return paymentTradeQryCoreService.queryPaymentOrderByPayNo(payNo);
    }
    
    @Override
	public List<Map<String, Object>> queryTranseOrderSidList(String reqBatchNo) {
		return paymentTradeQryCoreService.queryTranseOrderSidList(reqBatchNo);
	}

	@Override
	public List<PayTradeNotifyRecordDTO> queryPayTradeNotifyRecord(PayTradeNotifyRecordDTO cPayTradeNotifyRecord) {
		return paymentTradeQryCoreService.queryPayTradeNotifyRecord(cPayTradeNotifyRecord);
	}

	@Override
	public List<PaymentInfoDetailDTO> queryAllPayTransInfoForDay(String thirdpayCode) {
		return paymentTradeQryCoreService.queryAllPayTransInfoForDay(thirdpayCode);
	}

	@Override
	public List<PaymentTradeReqDTO> queryAllPayOrderBatchesOfDay(String thirdpayCode) {
		return paymentTradeQryCoreService.queryAllPayOrderBatchesOfDay(thirdpayCode);
	}

	@Override
	public PaymentTradeReqDTO queryPayTransInfoBySid(Integer Sid) {
		return paymentTradeQryCoreService.queryPayTransInfoBySid(Sid);
	}

	@Override
	public PaymentTradeReqDTO queryBatchOrderInfoBySid(Integer Sid) {
		return paymentTradeQryCoreService.queryBatchOrderInfoBySid(Sid);
	}

	@Override
	public PaymentTradeReqDTO queryTransPayRelateInfoByBatchId(Integer payBatchId) {
		return paymentTradeQryCoreService.queryTransPayRelateInfoByBatchId(payBatchId);
	}

	@Override
	public PaymentTradeBatchDTO queryPaySumInfoByBatchNo(String payBatchNo) {
		return paymentTradeQryCoreService.queryPaySumInfoByBatchNo(payBatchNo);
	}

    @Override
    public String queryStandBankCodeByBankCode(String bankCode) {
        return paymentTradeQryCoreService.queryStandBankCodeByBankCode(bankCode);
    }

    @Override
    public String queryOfferFileNameByOfferPayChannelId(Integer payChannelId) {
        return paymentTradeQryCoreService.queryOfferFileNameByOfferPayChannelId(payChannelId);
    }

    @Override
    public Integer queryPayTradeBatchSidByBatchNo(String reqBatchNo) {
        return paymentTradeQryCoreService.queryPayTradeBatchSidByBatchNo(reqBatchNo);
    }

    @Override
    public AllinpayRespDTO queryAllinpayTradeResult(AllinpayReqDTO tAllinpayReqDTO) {
        return paymentTradeQryCoreService.queryAllinpayTradeResult(tAllinpayReqDTO);
    }

    @Override
    public PageGrid queryPaymentTradePageList(PageQueryModel cPageQueryModel) {
        return paymentTradeQryCoreService.queryPaymentTradePageList(cPageQueryModel);
    }

	@Override
	public PaymentInfoDetailDTO queryBatchResultCode(PayTradeSearchDTO payTradeSearchDTO){
		return paymentTradeQryCoreService.queryBatchResultCode(payTradeSearchDTO);
	}

	@Override
	public List<PaymentInfoDetailDTO> queryAllPayTransInfoForBatchNo(String ReqBatchNo) {
		return paymentTradeQryCoreService.queryAllPayTransInfoForBatchNo(ReqBatchNo);
	}
}
